std::bitset::count

From Cppreference

Jump to: navigation, search
size_t count() const;

Returns the number of bits that are set to true.

Parameters

(none)

Return value

number of bits that are set to true.

See also

size
returns the size number of bits that the bitset can hold
(public member function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages